package com.rc.saas.tenant.mapper.tenant;

import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.tenant.TenantRole;
import com.rc.saas.tenant.model.tenant.TenantRoleExample;
import com.rc.saas.tenant.model.tenant.TenantUser;
import com.rc.saas.tenant.search.tenant.TenantRoleSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TenantRoleMapper extends BaseMapper<Long, TenantRole, TenantRoleExample> {
    List<TenantRole> listPageTenantRole(TenantRoleSearch tenantRoleSearch);

    Long insertReturnId(@Param("role") TenantRole role,@Param("user") TenantUser user);

}